﻿// -----------------------------------------------------------------------
// <copyright file="NumericUpDown.xaml.cs" company="R&R">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

#region Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
#endregion Imports

namespace Domino
{
    /// <summary>
    /// Interaction logic for NumericUpDown.xaml
    /// </summary>
    public partial class NumericUpDown : UserControl
    {
        private eNumericSelectorStyle selectorStyle;
        public eNumericSelectorStyle SelectorStyle
        {
            get { return selectorStyle; }
            set
            {
                selectorStyle = value;
                switch (selectorStyle)
                {
                    case eNumericSelectorStyle.UpDown:
                        btnUp.Visibility = btnDown.Visibility = Visibility.Visible;
                        btnLeft.Visibility = btnRight.Visibility = Visibility.Collapsed;
                        break;

                    case eNumericSelectorStyle.LeftRight:
                        btnUp.Visibility = btnDown.Visibility = Visibility.Collapsed;
                        btnLeft.Visibility = btnRight.Visibility = Visibility.Visible;
                        break;

                    default:
                        break;
                }
            }
        }

        public NumericUpDown()
        {
            InitializeComponent();
        }

        private void btnDecrease_Click(object sender, RoutedEventArgs e)
        {


        }

        private void btnIncrease_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
